package com.demo.kafka.entity;

import java.util.UUID;

public class KafkaMessage {
    private String topic;
    private Long delayTime;
    private String msgId;
    private Object payload;

    public KafkaMessage() {
        msgId = UUID.randomUUID().toString().replaceAll("-", "");
    }

    public String getTopic() {
        return topic;
    }

    public Long getDelayTime() {
        return delayTime;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setDelayTime(Long delayTime) {
        this.delayTime = delayTime;
    }

    public Object getPayload() {
        return payload;
    }

    public void setPayload(Object payload) {
        this.payload = payload;
    }
}
